package com.itheima.health.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author 施子安
 * @version 1.0
 * @date 2023/4/29 10:46
 * @Description 用户登录权限
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo implements Serializable {
    /**
     * 当前登录用户id
     */
    private Long id;
    /**
     * 当前登录用户名
     */
    private String username;
    /**
     * jwtKey
     */
    private String jwtKey;

    /**
     * 权限
     */
    private List<String> authorities;
}